package api

import (
	"cloud-entropy-storage-system/server/internal/config"
	"cloud-entropy-storage-system/server/internal/core/server"
	"cloud-entropy-storage-system/server/internal/svc"
	"cloud-entropy-storage-system/server/model/metadata"
	"go.uber.org/zap"
)

type FileLogic struct {
	log     *zap.Logger
	meta    *metadata.MetaData
	manager *server.Manager
	svcCtx  *svc.FileSvc
	cfg     config.Config
}

func NewFileLogic(log *zap.Logger, meta *metadata.MetaData, manager *server.Manager, cfg config.Config) *FileLogic {
	svcCtx := svc.NewFileSvc(log, meta, manager)
	return &FileLogic{log: log, meta: meta, manager: manager, svcCtx: svcCtx, cfg: cfg}
}
